package com.mybatis.tester;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import com.mybatis.conf.MybatisConf;
import com.mybatis.mapper.UserMapper;
import com.mybatis.po.User;

public class TestCase {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(MybatisConf.class);
		UserMapper userMapper = ac.getBean(UserMapper.class);
		//System.out.println(userMapper.save(new User(null, "张三", "123456")));
		//System.out.println(userMapper.update(new User(11L, "张三12", "12234561")));
		//System.out.println(userMapper.delete(new User(11L, null,null)));
		//System.out.println(userMapper.selectById(new User(11L, null,null)));
		//System.out.println(userMapper.findAll());
		System.out.println(userMapper.findAll2());
	}

}
